package cn.kuick.iplocation.factory_method_model;

/**
 * Created by Administrator on 2016/11/30.
 */
public class DoMain {
    public static void main(String[] args){
        Factory factory = new ConcreteFactory();

        ProductIf product1 = factory.createProduct(ProductA.class);
        ProductIf product2 = factory.createProduct(ProductB.class);

        product1.method1();
        product1.method2();
        product2.method1();
        product2.method2();
    }
}
